<%-- 
    Document   : showForum
    Created on : May 18, 2011, 6:50:13 PM
    Author     : Emyzzz
--%>

<%@page import="xmlMapping.Category"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>search page</title>
    </head>
    <body>


        <div class="forabg">
            <div class="inner"><span class="corners-top"><span></span></span>
                <ul class="topiclist">
                    <li class="header">
                        <dl class="icon">
                            <dt><bean:write name="showForumBean" property="catName"/>

                            <dd class="topics">Topics</dd>
                            <dd class="posts">Posts</dd>
                            <dd class="lastpost"><span>Last post</span></dd>
                        </dl>
                    </li>
                </ul>

                <ul class="topiclist forums">
                    <logic:notEmpty name="showForumBean" property="forums">
                        <logic:iterate id="forum" name="showForumBean" property="forums" >
                            <logic:notEqual name="forum" property="post" value="<%=""%>">
                                <bean:define name="forum"  property="post" id="post"/>
                                <bean:define name="post" property="member" id="member"/>
                            </logic:notEqual>

                            <li class="row">
                                <dl class="icon" style="background-image: url(./styles/carbon_fiber/imageset/forum_read.png); background-repeat: no-repeat;">
                                    <dt title="No new posts">



                                        <html:link action="/forum.do" paramName="forum" paramProperty="forumId" paramId="forumId">
                                            <bean:write name="forum" property="name"/></html:link>
                                            <br/>
                                        <bean:write name="forum" property="description"/>
                                    </dt>

                                    <dd class="topics"> <bean:write name="forum" property="noofthread"/> <dfn>Topics</dfn></dd>
                                    <dd class="posts"> <bean:write name="forum" property="noofpost"/> <dfn>Posts</dfn></dd>
                                    <dd class="lastpost"><span>
                                            <dfn>Last post</dfn>
                                            <logic:notEqual name="forum" property="post" value="<%=""%>">
                                                by <a href="memberlist.html">
                                                    <bean:write name="member" property="userName" /></a>
                                                <a href="ViewTopic.jsp">
                                                    <img src="imageset/icon_topic_latest.gif" width="11" height="9" alt="View the latest post" title="View the latest post" />
                                                    <bean:write name="post" property="lastModified"/></a> <br />
                                                </logic:notEqual>
                                                <logic:equal name="forum" property="post" value="<%=""%>">
                                                No Posts Added yet.
                                            </logic:equal>
                                        </span>
                                    </dd>

                                </dl>
                            </li>
                        </logic:iterate>
                    </logic:notEmpty>
                    <logic:empty name="showForumBean" property="forums">
                        <font size="3"><center> No Forums in this Category </center></font>
                    </logic:empty>
                </ul> </div> </div>

    </body>
</html>
